package cm.example.shoppingplatformspringboot.utils;

import cm.example.shoppingplatformspringboot.entity.Goods;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor  // 确保生成无参构造方法
public class ProductResult {
    List<Goods> goodsList;
    private int totals;

    public ProductResult(List<Goods> goodsList, int totals) {
        this.goodsList = goodsList;
        this.totals = totals;
    }
}
